package com.nari.ruist.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.nari.common.core.annotation.Excel;
import com.nari.common.core.web.domain.BaseEntity;

/**
 * 接口清单 对象 rst_interface
 *
 * @author nari
 * @date 2021-04-02
 */
public class RstInterface extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @Excel(name = "主键")
    private String id;

    /**
     * 接口编号
     */
    @Excel(name = "接口编号")
    private String tranId;

    /**
     * 接口名称
     */
    @Excel(name = "接口名称")
    private String tranName;

    /**
     * 接口分类
     */
    @Excel(name = "接口分类")
    private String tranType;

    /**
     * 接口功能描述
     */
    @Excel(name = "接口功能描述")
    private String tranDesc;

    /**
     * 是否启用
     */
    @Excel(name = "是否启用")
    private String enable;

    /**
     * 接口是否压缩
     */
    @Excel(name = "接口是否压缩")
    private String isZip;

    /**
     * 接口是否签名
     */
    @Excel(name = "接口是否签名")
    private String isSign;

    /**
     * 版本
     */
    @Excel(name = "版本")
    private String version;

    /**
     * 请求报文body示例
     */
    @Excel(name = "请求报文body示例")
    private String request;

    /**
     * 返回报文body示例
     */
    @Excel(name = "返回报文body示例")
    private String response;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setTranId(String tranId) {
        this.tranId = tranId;
    }

    public String getTranId() {
        return tranId;
    }

    public void setTranName(String tranName) {
        this.tranName = tranName;
    }

    public String getTranName() {
        return tranName;
    }

    public void setTranType(String tranType) {
        this.tranType = tranType;
    }

    public String getTranType() {
        return tranType;
    }

    public void setTranDesc(String tranDesc) {
        this.tranDesc = tranDesc;
    }

    public String getTranDesc() {
        return tranDesc;
    }

    public void setEnable(String enable) {
        this.enable = enable;
    }

    public String getEnable() {
        return enable;
    }

    public void setIsZip(String isZip) {
        this.isZip = isZip;
    }

    public String getIsZip() {
        return isZip;
    }

    public void setIsSign(String isSign) {
        this.isSign = isSign;
    }

    public String getIsSign() {
        return isSign;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getVersion() {
        return version;
    }

    public void setRequest(String request) {
        this.request = request;
    }

    public String getRequest() {
        return request;
    }

    public void setResponse(String response) {
        this.response = response;
    }

    public String getResponse() {
        return response;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("tranId", getTranId())
                .append("tranName", getTranName())
                .append("tranType", getTranType())
                .append("tranDesc", getTranDesc())
                .append("enable", getEnable())
                .append("isZip", getIsZip())
                .append("isSign", getIsSign())
                .append("version", getVersion())
                .append("remark", getRemark())
                .append("request", getRequest())
                .append("response", getResponse())
                .toString();
    }
}
